def jwt_response_payload_handler(token, user, request):
    return {
        'token': token,
        'id': user.id,
        'username': user.username
    }


def jwt_payload_handler(user):
    return {
        'user_id': user.id,
        'username': user.username,
        'mobile': user.mobile,
    }